﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Minecraft.Model
{
	/// <summary>
	/// 三维坐标实体
	/// </summary>
	[Serializable]
	public class Point3 : IEquatable<Point3>
	{
		/// <summary>
		/// x坐标
		/// </summary>
		public int x;
		/// <summary>
		/// y坐标
		/// </summary>
		public int y;
		/// <summary>
		/// z坐标
		/// </summary>
		public int z;

		/// <summary>
		/// 判断两个坐标点是否相等
		/// </summary>
		/// <param name="other"></param>
		/// <returns></returns>
		public bool Equals(Point3 other)
		{
			return x == other.x && y == other.y && z == other.z;
		}
	}
}
